FROM node:12-alpine

LABEL maintainer=275284429@qq.com

# 创建一个工作目录
RUN mkdir -p /app

WORKDIR /app

COPY . /app

RUN npm cache clean --force

RUN npm config set registry https://registry.npm.taobao.org
# 不需要打印进程
RUN npm install

RUN npm run build

ENV NODE_ENV=production

ENV HOST 0.0.0.0

EXPOSE 10012

CMD ["npm","start"]
